package com.compty.paint.freemarker;

import java.io.IOException;

import com.compty.core.framework.util.FileUtil;
import com.compty.core.framework.util.StringUtil;

import freemarker.template.TemplateException;

/**
 * @author 朱庆辉
 *其他文件生成静态页
 */
public class OtherResourceGenerate  extends BaseGenerate {
	

	public void generateHtml() throws TemplateException, IOException {
		
		output("about/about.ftl", "/about", "about.html");
		output("about/contact.ftl", "/about", "contact.html");
		output("about/policy.ftl", "/about", "policy.html");
		 
		 String rootPathDir  = StringUtil.getRootPath();
		 String destPathDir = rootDir;
		 
		 //拷贝js,css ,images文件夹至目标文件夹
//		 try {
//			 FileUtil.copyFolder(rootPathDir+"/images", destPathDir+"/images");
//			 FileUtil.copyFolder(rootPathDir+"/style", destPathDir+"/style");
//			 FileUtil.copyFolder(rootPathDir+"/js", destPathDir+"/js");
//		} catch (Exception e) {
//			e.printStackTrace();
//		}
	}

}
